<?php
/**
 * 扩展变量验证器
 * @author maniac
 */
namespace app\common\validate;

class Vars extends Base
{
    // 验证规则
    protected $rule = [
        'key'   => 'require|unique|validVar',
        'title' => 'require',
    ];
    
    // 错误信息
    protected $message = [
        'key.require'  => '请输入变量标识',
        'key.validVar' => '请输入合法的变量标识',
        'title'        => '请输入变量名称',
    ];
}
